package com.czwx.bee.business.manager.utils;


import com.czwx.bee.business.manager.modular.sys.model.SecurityUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class SecurityUtil {

    public static SecurityUser getSecurityUser(){
        SecurityUser securityUser= (SecurityUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        return securityUser;
    }
}
